package com.yazi.mxz.common.service;


import com.myframework.smhj.common.exception.MyException;
import com.myframework.smhj.hibernate.dao.Service;

import com.yazi.mxz.common.entity.beans.Ad;

public interface AdService extends Service<Ad> {
	
	/**
	 * 添加店铺广告<br>
	 * @param storeId 店铺ID
	 * @param ad 广告(构建对象)
	 * @return
	 */
	Ad addOrEditByStoreId(long storeId, Ad ad) throws MyException;
	
	/**
	 * 删除店铺广告
	 * @param storeId
	 * @param adIds
	 */
	void removeByStoreId(long storeId, long[] adIds);

}
